<template>
  <div class="tool-input">
    <input
      class="tool-input_inner"
      v-model="inputValue"
      :placeholder="placeholder"
    >
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: [String, Number],
      default: ''
    },
    placeholder: String
  },
  computed: {
    inputValue: {
      get () {
        return this.value
      },
      set (val) {
        this.$emit('input', val)
      }
    }
  }
}
</script>

<style>
.tool-input_inner{
  height: 35px;
  width: 100%;
  padding: 0 10px;
  color: #666;
  box-sizing: border-box;
  outline: none;
  border: 1px solid #dedede;
  border-radius: 2px;
}
</style>